package org.angelica.modules.account.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.angelica.modules.account.entity.AccUserDO;
import org.angelica.modules.account.query.AccUserQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 管理员表 Mapper 接口
 * </p>
 *
 * @author aizhimin
 * @since 2019-05-12
 */
public interface AccUserDao extends BaseMapper<AccUserDO> {

    /**
     * 查询我的权限列表
     * @param currentUserId
     * @return
     */
    List<String> listMyPermission(@Param(value = "currentUserId") Long currentUserId);

    /**
     * 查询用户
     * @param page
     * @param accUserQuery);
     * }
     * @return
     */
    IPage<AccUserDO> listAccUser(Page page, @Param(value = "accUserQuery") AccUserQuery accUserQuery);
}
